all: prog

prog: main.o array.o
	g++ main.o array.o  -o prog
array.o: array.cpp
	g++ array.cpp -c
main.o: main.cpp
	g++ main.cpp -c


clean: 
	rm -rf *.o
 
remove:	clean
	rm -f prog

other:
	g++ main.cpp  -c
	g++ main.o -o prog
	
.PHONY: clean remove other

